<%@tag pageEncoding="UTF-8" description="分页" %>
<%@attribute name="page" type="org.agile4j.common.utils.page.Page" required="true" description="分页" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<table>
  <tr>
    <td>
    	<span class="page" >[共有记录${page.totalCount}条  / 共分${page.totalPage}页  ， 当前是第 ${page.nowPage} 页]</span>
	</td>
  </tr>
  <tr>
    <td>
    	<c:choose>
    		<c:when test="${page.nowPage==1}">
				首页 &nbsp;&nbsp;
				上一页&nbsp;&nbsp;
    		</c:when>
    		<c:otherwise>
    			<a href="#" onclick="turnPage(1);" title="首页">首页</a>&nbsp;&nbsp;
    			<a href="#" onclick="turnPage(${page.nowPage - 1});" title="上一页">上一页</a>&nbsp;&nbsp;
    		</c:otherwise>
    	</c:choose>
    	<c:choose>
    		<c:when test="${page.nowPage==page.totalPage}">
				下一页&nbsp;&nbsp;
				尾页&nbsp;&nbsp;
    		</c:when>
    		<c:otherwise>
    			<a href="#" onclick="turnPage(${page.nowPage + 1});" title="下一页">下一页</a>&nbsp;&nbsp;
                <a href="#" onclick="turnPage(${page.totalPage});" title="尾页">尾页</a>&nbsp;&nbsp;
    		</c:otherwise>
    	</c:choose>
	</td>
  </tr>
</table>
